﻿// 1.1.5.02. Write a program that shows the sign (+ or -) of the product of three real numbers without calculating it.
// Use a sequence of if statements.

using System;

class SignWithoutMultiplication
{
    static void Main()
    {
        while (true)
        {
            double a = double.Parse(Console.ReadLine());
            double b = double.Parse(Console.ReadLine());
            double c = double.Parse(Console.ReadLine());

            if (a != 0 && b != 0 && c != 0)
            {
                if (a < 0 && b < 0 && c < 0)
                {
                    Console.WriteLine("-");
                }
                else if (a > 0 && b < 0 && c < 0)
                {
                    Console.WriteLine("+");
                }
                else if (a < 0 && b > 0 && c < 0)
                {
                    Console.WriteLine("+");
                }
                else if (a < 0 && b < 0 && c > 0)
                {
                    Console.WriteLine("+");
                }
                else if (a < 0 && b > 0 && c > 0)
                {
                    Console.WriteLine("-");
                }
                else if (a > 0 && b < 0 && c > 0)
                {
                    Console.WriteLine("-");
                }
                else if (a > 0 && b > 0 && c < 0)
                {
                    Console.WriteLine("-");
                }
                else if (a > 0 && b > 0 && c > 0)
                {
                    Console.WriteLine("+");
                }
            }
            else
            {
                Console.WriteLine(0);
            }
        }
    }
}